 	<script type="text/javascript">
            $(window).load(function() {
                $('#slider').nivoSlider({
                    effect: 'random',
                    slices:8,
                    animSpeed:900, //Slide transition speed
                    pauseTime:3000,
                    startSlide:0, //Set starting Slide (0 index)
                    directionNav:true, //Next & Prev
                });
            });
	 </script>
 <div class="slide">
                	<div id="slider" class="nivoSlider">
                		<?php 
                		$mdlSlider=new Zendme_Models_Slide();
                		$items=$mdlSlider->listItem(null,array('task'=>'public'));
                		foreach ($items as $item){
                		$pic=$item['picture'];
                		?>
                        <img src="<?php echo FILES_URL."/slide/orignal/$pic" ?>" alt="" title="" />
                    	<?php } ?>
                    </div>
                    <div id="htmlcaption" class="nivo-html-caption">
                        <strong>This</strong> is an example of a <em>HTML</em> caption with <a href="#">a link</a>.
                    </div>
                </div>
                <!--------------------SLIDE (End) ------------------------->				
                
                <!--------------------CONTENT (Start) ----------------------->
                <div class="content mar-top-50">
                	
                	<?php
                	$mdlCut=new Zendme_CutString();
                	$mdlServiceItem=new Zendme_Models_ServiceItem();
                	$items=$mdlServiceItem->listItem(null,array('task'=>'public-home'));
                	foreach ($items as $key =>$item){
                	$name=$item['name'];
                	$name=$mdlCut->cutTring(20,$name);
                	$image=$item['picture'];

                	$urlImage=FILES_URL.'/news/images450x450/'.$image;
					if(empty($image)) $urlImage= TEMPLATE_SYSTEM1_URL . "/images/img.png";
                	
                	$slug=$item['slug'];
                	
                	$summary=$item['summary'];
                	$summary=$mdlCut->cutTring(200,$summary);
					
                	if($key%3==0) echo "<div style='float:left;width:100%;padding:10px 0';></div>";
                	?> 
                	<div class="box-cnt col-<?php echo $key ?> width-32">
                        <div class="cnt bor-radius-10">
                            <div class="bor-img">
                                <a href="<?php echo DOMAIN_URL."/chi-tiet-dich-vu/$slug.html" ?>"><img width="272" height="189" src="<?php echo $urlImage ?>" alt="<?php echo $item['name'] ?>" title="<?php echo $item['name'] ?>" /></a>
                                <div class="clr"></div>
                                <h2 class="title-img color-blue"><a class="color-blue" href="<?php echo DOMAIN_URL."/chi-tiet-dich-vu/$slug.html" ?>"><?php echo $name ?></a></h2>
                            </div>
                            <div class="desc">
                                <p><?php echo $summary ?></p>
                            </div>
                            <a href="<?php echo DOMAIN_URL."/chi-tiet-dich-vu/$slug.html" ?>" class="btn-readmore bag-readmore"><span>Xem chi tiết</span></a>
                        </div>
                    </div>
                	<?php } ?>
                	
                    <div class="clear"></div>
                    
                    <!--------------------PARTNERS (start) ----------------------->
                    <div class="partners mar-top-30">
                    	<div class="sub-partners">
                        	<div class="decor"><span>Các đối tác</span></div>
                        </div>
                        <div class="info-partners">
                          	<!-- 
                        	<a href="#"><img src="<?php echo TEMPLATE_SYSTEM1_URL ?>/images/img-partners.png" alt="" /></a>
                            <a href="#"><img src="<?php echo TEMPLATE_SYSTEM1_URL ?>/images/img-partners2.png" alt="" /></a>
                            <a href="#"><img src="<?php echo TEMPLATE_SYSTEM1_URL ?>/images/img-partners3.png" alt="" /></a>
                            <a href="#"><img src="<?php echo TEMPLATE_SYSTEM1_URL ?>/images/img-partners4.png" alt="" /></a>
                            <a href="#"><img src="<?php echo TEMPLATE_SYSTEM1_URL ?>/images/img-partners5.png" alt="" /></a>
                        	-->
                        	<?php 
                        	$mdlPartner=new Zendme_Models_Partner();
                        	$items= $mdlPartner->listItem(null,array('task'=>'public'));
                        	foreach ($items as $item){
                        	$pic=$item['picture'];
                        	$link=$item['link'];
                        	$name=$item['name'];
                        	?>
                        	<a href="<?php echo $link ?>" target="_blank"><img width="150" height="150" src="<?php echo FILES_URL."/slide/orignal/$pic" ?>" alt="<?php echo $name ?>" title="<?php echo $name ?>" /></a>                      	
                        	<?php } ?>
                        </div>  
                                  
                    </div>
                    <!--------------------PARTNERS (End) ------------------------->
                    
                </div>
                <!--------------------CONTENT (End) ------------------------->